﻿using System;
using System.Collections.Generic;
using FreeSql.DataAnnotations;

namespace QuDao
{
	public class OrderItemDto
	{
		/// <summary>
        /// 订单项ID
        /// </summary>
		public long OrderItemID { get; set; }
		
		/// <summary>
        /// 租户ID
        /// </summary>
		public int TID { get; set; }
		
		/// <summary>
        /// 订单ID
        /// </summary>
		public long OrderID { get; set; }
		
		/// <summary>
        /// 商品ID
        /// </summary>
		public int GoodsID { get; set; }
		
		/// <summary>
        /// 用户ID
        /// </summary>
		public long UserID { get; set; }

        /// <summary>
        /// 类别ID
        /// </summary>
        public int CategoryID { get; set; }

        /// <summary>
        /// 类别名称
        /// </summary>
        public string CategoryName { get; set; }

        /// <summary>
        /// 商品名称
        /// </summary>
        public string GoodsName { get; set; }
		
		/// <summary>
        /// 主图Url
        /// </summary>
		public string ImageUrl { get; set; }

		/// <summary>
        /// 购买数量
        /// </summary>
		public int Num { get; set; }
		
		/// <summary>
        /// 进货价：会员实际优惠价格
        /// </summary>
		public decimal Price { get; set; }
		
		/// <summary>
        /// 成本价
        /// </summary>
		public string CostPrice { get; set; }
		
		/// <summary>
        /// 市场价
        /// </summary>
		public decimal MarketPrice { get; set; }

        /// <summary>
        /// 业绩提成
        /// </summary>
        public decimal Commission { get; set; }

        /// <summary>
        /// 创建时间：核销时间，如果是计次项目则是第一次核销时间
        /// </summary>
        public DateTime CreateTime { get; set; }
		
				
	}
	
	public class OrderItemAddDto
	{
		/// <summary>
        /// 商品ID
        /// </summary>
		public int GoodsID { get; set; }
		
		/// <summary>
        /// 购买数量
        /// </summary>
		public int Num { get; set; }
		
	}
	
	
}